<?php
		session_start(); 
		include "libfunc.php";
 			if (!empty($_SESSION['username']) && !empty($_SESSION['password'])) { 
			$link = koneksi_db();
                        $id = $_POST['idkategori'];
                        $nam=$_POST['namakategori'];
                        $dsc=$_POST['deskripsi'];
			$sql = "call UbahKategori('$id','$nam','$dsc')";
			mysql_query($sql) or exit("Error query : <b>".$sql."</b>.");
			}else {
			echo "<script language='javascript'>window.location = '../admin/'</script>";
			}
?>
